<?php
namespace app\model;

use support\Model;

class OrderModel extends Model
{
    protected $table = 'orders';
    
    protected $fillable = ['order_no', 'user_id', 'total_amount', 'pay_amount', 'discount_amount', 'status', 'pay_status', 'pay_time', 'pay_type', 'trade_no', 'shipping_name', 'shipping_phone', 'shipping_address', 'shipping_time', 'shipping_company', 'shipping_no', 'remark', 'created_at', 'updated_at'];
    
    protected $hidden = [''];
    
    protected $casts = array (
  'pay_time' => 'datetime',
  'shipping_time' => 'datetime',
  'created_at' => 'datetime',
  'updated_at' => 'datetime',
);
} 